/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.datatranferobject;

import java.util.Objects;

/**
 *
 * @author lee
 */
public class KindOfSubjectDTO {
    
    //<editor-fold defaultstate="collapsed" desc=" Attributes ">
    private String m_KindOfSubjectID;
    private String m_NameOfKind;
    private int m_AmountOfMoneyPerCredit;
    private int m_CountLessonsConversion;
//</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc=" Properties ">
    public String getKindOfSubjectID() {
        return m_KindOfSubjectID;
    }

    public int getCountLessonsConversion() {
        return m_CountLessonsConversion;
    }

    public void setCountLessonsConversion(int m_CountLessonsConversion) {
        this.m_CountLessonsConversion = m_CountLessonsConversion;
    }

    public void setKindOfSubjectID(String strKindOfSubjectID) {
        this.m_KindOfSubjectID = strKindOfSubjectID;
    }

    public String getNameOfKind() {
        return m_NameOfKind;
    }

    public void setNameOfKind(String strNameOfKind) {
        this.m_NameOfKind = strNameOfKind;
    }

    public int getAmountOfMoneyPerCredit() {
        return m_AmountOfMoneyPerCredit;
    }

    public void setAmountOfMoneyPerCredit(int iAmountOfMoneyPerCredit) {
        this.m_AmountOfMoneyPerCredit = iAmountOfMoneyPerCredit;
    }
    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc=" Method ">
    
    public KindOfSubjectDTO(){
        
    }
    
    public KindOfSubjectDTO(String strKindOfSubjectID, String strNameOfKind, int iAmount,int iCount){
        this.m_KindOfSubjectID = strKindOfSubjectID;
        this.m_NameOfKind = strNameOfKind;
        this.m_AmountOfMoneyPerCredit = iAmount;
        this.m_CountLessonsConversion=iCount;
    }
    
     @Override
    public String toString() {
        return m_NameOfKind;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 43 * hash + Objects.hashCode(this.m_KindOfSubjectID);
        hash = 43 * hash + Objects.hashCode(this.m_NameOfKind);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final KindOfSubjectDTO other = (KindOfSubjectDTO) obj;
        if (!Objects.equals(this.m_KindOfSubjectID, other.m_KindOfSubjectID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfKind, other.m_NameOfKind)) {
            return false;
        }
        return true;
    }
    //</editor-fold>
}
